//
//  HomeCoinManager.m
//  Nectar
//
//  Created by famer on 2023/11/8.
//  Copyright © 2023 asance. All rights reserved.
//

#import "HomeCoinManager.h"

@implementation HomeCoinManager

+ (instancetype)shareInstance{
    static HomeCoinManager *shareInstance = nil;
    static dispatch_once_t onceToken;
    
    dispatch_once(&onceToken, ^{
        shareInstance = [[HomeCoinManager alloc] init];
    });
    return shareInstance;
}

- (void)updateCoinInfo:(RevDataGetCoins *)coin{
    _globalAddress = coin.address;
    _globalCoinType = coin.coinType;
    _globalMainCoinType = coin.mainCoinType;
    _globalName = coin.name;
    _globalSymbol = coin.symbol;
}

@end
